Use G_STRFUNC and G_STRLOC instead __FUNCTION__ and __FILE__
authorJavier Jardón <jjardon@gnome.org>
Wed, 21 Oct 2009 21:02:29 +0000 (23:02 +0200)
committerJavier Jardón <jjardon@gnome.org>
Mon, 26 Oct 2009 17:46:19 +0000 (18:46 +0100)
gtk/gtktreeprivate.h

index 44259abe355eb2a9b981818ae3b99484421fcd68..8b672f26cc07997f38515512abe9b103448f40b5 100644 (file)
@@ -285,14 +285,13 @@ struct _GtkTreeViewPrivate
        {                                                                \
          g_log (G_LOG_DOMAIN,                                           \
                 G_LOG_LEVEL_CRITICAL,                                   \
-               "file %s: line %d (%s): assertion `%s' failed.\n"       \
+               "%s (%s): assertion `%s' failed.\n"                     \
                "There is a disparity between the internal view of the GtkTreeView,\n"    \
                "and the GtkTreeModel.  This generally means that the model has changed\n"\
                "without letting the view know.  Any display from now on is likely to\n"  \
                "be incorrect.\n",                                                        \
-                __FILE__,                                               \
-                __LINE__,                                               \
-                __PRETTY_FUNCTION__,                                    \
+                G_STRLOC,                                               \
+                G_STRFUNC,                                              \
                 #expr);                                                 \
          return ret;                                                    \
        };                               }G_STMT_END
@@ -302,14 +301,13 @@ struct _GtkTreeViewPrivate
        {                                                                \
          g_log (G_LOG_DOMAIN,                                           \
                 G_LOG_LEVEL_CRITICAL,                                   \
-               "file %s: line %d (%s): assertion `%s' failed.\n"       \
+               "%s (%s): assertion `%s' failed.\n"                     \
                "There is a disparity between the internal view of the GtkTreeView,\n"    \
                "and the GtkTreeModel.  This generally means that the model has changed\n"\
                "without letting the view know.  Any display from now on is likely to\n"  \
                "be incorrect.\n",                                                        \
-                __FILE__,                                               \
-                __LINE__,                                               \
-                __PRETTY_FUNCTION__,                                    \
+                G_STRLOC,                                               \
+                G_STRFUNC,                                              \
                 #expr);                                                 \
          return;                                                        \
        };                               }G_STMT_END